package Servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.AdminI;
import Manage.AdminM;


public class AdminUpdateS extends HttpServlet{
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");	
		
		String name = request.getParameter("name");
		AdminM adminm=new AdminM();
		AdminI a=adminm.Login(name);
		request.setAttribute("a", a);
		request.getRequestDispatcher("AdminUpdate.jsp").forward(request, response);
	}
}
